package com.ms.game.jackpot.db;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import com.xpec.c4.db.model.basic.BasicModel;
import com.xpec.c4.db.util.LogDBUtils;
import com.xpec.c4.game.time.TimeSys;
import com.xpec.c4.game.utility.GameUtility;

/**
 * 遊戲歸還JP金錢處理紀錄
 */
@MappedSuperclass
public class BasicJackPotReturnModel extends BasicModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5968498553264632875L;
	
	/**
	 * 新增的處理
	 */
	public static final String NEW = "NEW";
	
	/**
	 * 完成的處理
	 */
	public static final String COMPLETE = "COMPLETE";


	private long eventID;

	/**創建時間(long)*/
	private long createGameTime;
	
	/**創建時間(Date)*/
	private Date createEventTime;
	
	/**館別*/
	private String hallType;
	
	/**下注orderID*/
	private String orderID;
	
	/**玩家ID*/
	private String playerGUID;
	
	/**JP類型*/
	private int jpState;
	
	/**歸還金額*/
	private BigDecimal returnMoney;
	
	/**完成時間(long)*/
	private long completeGameTime;
	
	/**完成時間(Date)*/
	private Date completeTime;
	
	/**處理狀態*/
	private String status;
	
	public BasicJackPotReturnModel() {
		eventID = LogDBUtils.getRandomLong();
		createGameTime = TimeSys.currentTimeMills();
		createEventTime = GameUtility.longToDate(createGameTime);
		status = BasicJackPotReturnModel.NEW;
	}

	@Id
	public long getEventID() {
		return eventID;
	}

	public void setEventID(long eventID) {
		this.eventID = eventID;
	}

	public long getCreateGameTime() {
		return createGameTime;
	}

	public void setCreateGameTime(long createGameTime) {
		this.createGameTime = createGameTime;
	}

	public Date getCreateEventTime() {
		return createEventTime;
	}

	public void setCreateEventTime(Date createEventTime) {
		this.createEventTime = createEventTime;
	}

	public String getHallType() {
		return hallType;
	}

	public void setHallType(String hallType) {
		this.hallType = hallType;
	}

	public String getOrderID() {
		return orderID;
	}

	public void setOrderID(String orderID) {
		this.orderID = orderID;
	}

	public String getPlayerGUID() {
		return playerGUID;
	}

	public void setPlayerGUID(String playerGUID) {
		this.playerGUID = playerGUID;
	}

	public int getJpState() {
		return jpState;
	}

	public void setJpState(int jpState) {
		this.jpState = jpState;
	}

	public BigDecimal getReturnMoney() {
		return returnMoney;
	}

	public void setReturnMoney(BigDecimal returnMoney) {
		this.returnMoney = returnMoney;
	}

	public long getCompleteGameTime() {
		return completeGameTime;
	}

	public void setCompleteGameTime(long completeGameTime) {
		this.completeGameTime = completeGameTime;
	}

	public Date getCompleteTime() {
		return completeTime;
	}

	public void setCompleteTime(Date completeTime) {
		this.completeTime = completeTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
